package com.lcsp.client.zoo;

import java.io.IOException;

import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.Version;
import org.apache.zookeeper.ZooDefs.Ids;
import org.apache.zookeeper.ZooKeeper;

public class Operate {
	public static void main(String[] args) throws IOException, KeeperException, InterruptedException {
		ZooKeeper zoo = ZKUtil.connect(ZKClient.zooUrl, ZKClient.zooPort);
		//zoo.create("/rootNode/test6", new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
		zoo.setData("/rootNode/test6", "test2".getBytes(), -1);
		zoo.close();
	}
}
